package cn.ransj.animation.util;

import java.util.ArrayList;
import java.util.HashMap;
import android.view.View;
import android.view.animation.Animation;

/**
 * animation connector interface
 * @author android
 *
 */
public interface AniConnectorInterface {
	/**
	 * set animations to act
	 * @param animations target animations
	 */
	public void setAnimations(ArrayList<Animation> animations);
	/**
	 * set animations to act with repeat cycle map
	 * @param animations target animations
	 * @param repeatMap key:the target ani index, value: the target repeat times
	 */
	public void setAnimations(ArrayList<Animation> animations, HashMap<Integer, Integer> repeatMap);
	/**
	 * start animations
	 * @param view
	 */
	public void start(View view);
	/**
	 * set ani connector listener
	 * @param listener
	 */
	public void setAniConnectorListener(AniCoonectorListener listener);
	
}
